package com.lzy.product.apis.impl;

import com.lzy.product.apis.ProductSaleConditionServiceApi;
import com.lzy.product.dtos.ProductSaleConditionDto;
import com.lzy.product.service.ProductSaleConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/12.
 */
@Service
public class ProductSaleConditionServiceApiImpl implements ProductSaleConditionServiceApi {

    @Autowired
    ProductSaleConditionService productSaleConditionService;

    @Override
    public Long insert(ProductSaleConditionDto dto) {
        return productSaleConditionService.insert(dto);
    }

    @Override
    public Boolean update(ProductSaleConditionDto dto) {
        return productSaleConditionService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return productSaleConditionService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return productSaleConditionService.remove(id);
    }

    @Override
    public ProductSaleConditionDto findById(Long id) {
        return productSaleConditionService.findById(id);
    }

    @Override
    public List<ProductSaleConditionDto> query(ProductSaleConditionDto dto) {
        return productSaleConditionService.query(dto);
    }

    @Override
    public Integer deleteByPrimaryKey(ProductSaleConditionDto dto) {
        return productSaleConditionService.deleteByPrimaryKey(dto);
    }
}
